import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import organMange from './views/organMange.vue'
import teacherMange from './views/teacherMange.vue'
import childrenMange from './views/childrenMange.vue'
import userMange from './views/userMange.vue'
import insApplication from './views/insApplication.vue'
import Page4 from './views/Page4.vue'
import Page5 from './views/Page5.vue'
import Page6 from './views/Page6.vue'
import echarts from './views/echarts.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '用户管理',
        iconCls: 'fa fa-user',//图标样式class
        children: [
        // , hidden: true 
            { path: '/organMange', component: organMange, name: '机构管理'},
            { path: '/teacherMange', component: teacherMange, name: '康复师管理' },
            { path: '/childrenMange', component: childrenMange, name: '患者管理' },
            { path: '/userMange', component: userMange, name: '管理员' },
        ]
    },
     {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-bar-chart',
         leaf: true,//只有一个节点
        children: [
            { path: '/insApplication', component: insApplication, name: '机构申请' }
        ]
    },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '项目管理',
    //     iconCls: 'fa fa-clipboard',
    //     children: [
    //         { path: '/page4', component: Page4, name: '言语嗓音' },
    //         { path: '/page5', component: Page5, name: '构音语言' },
    //         { path: '/a', component: Page5, name: '儿童语言' },
    //         { path: '/b', component: Page4, name: '成人语言' },
    //         { path: '/c', component: Page5, name: '认知' }
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '',
    //     iconCls: 'fa fa-file-text',
    //     leaf: true,//只有一个节点
    //     children: [
    //         { path: '/page6', component: Page6, name: '修改记录' }
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '',
    //     iconCls: 'fa fa-bar-chart',
    //      leaf: true,//只有一个节点
    //     children: [
    //         { path: '/echarts', component: echarts, name: '报告统计' }
    //     ]
    // },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;